﻿using Domain.Entities.Stocks;
using Microsoft.EntityFrameworkCore;

namespace Application.Commons.Data;

public static partial class ApplicationDbContextExtensions
{
    public static DbSet<LargeTrade> LargeTrades(this EfCoreDbContext db) => db.Set<LargeTrade>();
    public static DbSet<MinuteTrade> MinuteTrades(this EfCoreDbContext db) => db.Set<MinuteTrade>();
    public static DbSet<NewStockCalendar> NewStockCalendars(this EfCoreDbContext db) => db.Set<NewStockCalendar>();
    public static DbSet<OrderBook> OrderBooks(this EfCoreDbContext db) => db.Set<OrderBook>();
    public static DbSet<RealTimeTrade> RealTimeTrades(this EfCoreDbContext db) => db.Set<RealTimeTrade>();
    public static DbSet<Stock> Stocks(this EfCoreDbContext db) => db.Set<Stock>();
    public static DbSet<TechnicalIndicator> TechnicalIndicators(this EfCoreDbContext db) => db.Set<TechnicalIndicator>();
    public static DbSet<TickTrade> TickTrades(this EfCoreDbContext db) => db.Set<TickTrade>();
    public static DbSet<StockInformation> StockInformations(this EfCoreDbContext db) => db.Set<StockInformation>();
}